package com.blb.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.blb.entity.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author tb
 * @since 2020-05-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_stay_production")
public class StayProduction extends BaseEntity {

    private static final long serialVersionUID=1L;


    /**
     * 订单商品数量
     */
    @TableField(exist = false)
    private Integer orderSum;

    /**
     * 交易金额
     */
    @TableField(exist = false)
    private double money;

    /**
     * 交易时间
     */
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;

    /**
     * 商品名称
     */
    @TableField(exist = false)
    private String productName;
    /**
     * 商品型号
     */
    @TableField(exist = false)
    private String productModel;
    //生产产线
    private String productionName;

    /**
     * 状态:0，未生产：1，以生产
     */
    private Integer state;

    private String remarks;

    /**
     * 外键，t_order表 编号
     */
    private String ioId;

    /**
     * 激光码生成状态
     */
    private String lState;
}
